package com.oig.sys.workflow.dto;

import com.oig.common.validator.GroupAdd;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@Schema
public class AuditCallMsgDto {


    @Schema(description = "表名")
    @NotEmpty(message = "参数错误,表名不能为空", groups= GroupAdd.class)
    private String tableName;
    @Schema(description = "记录id")
    @NotEmpty(message = "参数错误,记录id不能为空", groups= GroupAdd.class)
    private String tableId;
    @Schema(description = "操作")
    @NotEmpty(message = "参数错误,操作不能为空", groups= GroupAdd.class)
    private String operation;
    @Schema(description = "改动后列值")
    private String newValue;
    @Schema(description = "改动列及原值")
    private String oldValue;

    @Schema(description = "对象完整json")
    private String objJson;

    @Schema(description = "数据所属租户id")
    private Integer tenantId;
    @Schema(description = "数据所属租户名称")
    private String tenantName;

}
